<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>提示词工程知识卡片 | 2025</title>
    <script src="../../assets/js/tailwindcss.js"></script>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&family=Noto+Serif+SC:wght@400;500;700&display=swap" rel="stylesheet">
    <style>
        body {
            font-family: 'Noto Sans SC', sans-serif;
        }
        .serif {
            font-family: 'Noto Serif SC', serif;
        }
        .gradient-bg {
            background: linear-gradient(135deg, #6B73FF 0%, #000DFF 100%);
        }
        .grid-card-item {
            transition: all 0.3s ease;
        }
        .grid-card-item:hover {
            transform: translateY(-4px);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        }
        .highlight-blue {
            color: #2563EB;
            font-weight: 500;
        }
        .highlight-purple {
            color: #7C3AED;
            font-weight: 500;
        }
    </style>
</head>
<body class="bg-gray-50 text-gray-800">
    <div class="max-w-4xl mx-auto px-6 py-10">
        <!-- 卡片容器 -->
        <article class="bg-white rounded-2xl shadow-xl overflow-hidden">
            <!-- 头部 - 标题区 -->
            <header class="gradient-bg text-white px-8 py-10">
                <div class="flex items-center mb-2">
                    <i class="fas fa-robot text-2xl mr-3"></i>
                    <span class="text-sm font-medium bg-white/20 px-3 py-1 rounded-full">AI技术前沿</span>
                </div>
                <h1 class="text-4xl font-bold mb-2 serif">提示词工程完全指南</h1>
                <p class="text-xl opacity-90">2025年最新技术与应用实践</p>
                <div class="flex items-center mt-6 text-sm opacity-80">
                    <i class="far fa-calendar-alt mr-2"></i>
                    <span>2025年7月27日</span>
                    <i class="fas fa-user-edit ml-4 mr-2"></i>
                    <span>专家研究员</span>
                </div>
            </header>

            <!-- 核心内容区 -->
            <div class="px-8 py-8">
                <!-- 摘要部分 -->
                <section class="mb-12">
                    <div class="flex items-center mb-4">
                        <div class="w-1.5 h-6 bg-blue-600 mr-3 rounded-full"></div>
                        <h2 class="text-2xl font-bold text-gray-900">核心摘要</h2>
                    </div>
                    <p class="text-lg leading-relaxed mb-4">
                        进入<span class="highlight-blue">2025年</span>，提示词工程已从新兴技术演变为连接<span class="highlight-blue">人类意图</span>与<span class="highlight-blue">AI能力</span>的系统性学科。它通过优化输入文本来引导大型语言模型生成高质量输出，成为<span class="font-semibold">人机协作效率的关键决定因素</span>。
                    </p>
                    <div class="bg-blue-50 border-l-4 border-blue-500 px-4 py-3 mb-6">
                        <p class="text-blue-800">
                            <i class="fas fa-quote-left text-blue-400 mr-2"></i>
                            提示词工程是将复杂、模糊的人类需求，翻译成AI模型能够精确理解和执行的"语言指令"。
                        </p>
                    </div>
                </section>

                <!-- 定义与本质 -->
                <section class="mb-12">
                    <div class="flex items-center mb-6">
                        <div class="w-1.5 h-6 bg-purple-600 mr-3 rounded-full"></div>
                        <h2 class="text-2xl font-bold text-gray-900">定义与本质</h2>
                    </div>
                    
                    <div class="grid md:grid-cols-2 gap-6 mb-8">
                        <!-- 卡片1 -->
                        <div class="grid-card-item bg-purple-50 p-6 rounded-xl border border-purple-100">
                            <div class="flex items-center mb-3">
                                <div class="w-10 h-10 rounded-full bg-purple-100 flex items-center justify-center mr-3">
                                    <i class="fas fa-atom text-purple-600"></i>
                                </div>
                                <h3 class="font-bold text-lg text-purple-800">科学的一面</h3>
                            </div>
                            <p class="text-gray-700">
                                基于对<span class="highlight-purple">模型注意力机制</span>的理解，系统化设计交互指令，确保获得最优质、最相关、最准确的响应。
                            </p>
                        </div>
                        
                        <!-- 卡片2 -->
                        <div class="grid-card-item bg-purple-50 p-6 rounded-xl border border-purple-100">
                            <div class="flex items-center mb-3">
                                <div class="w-10 h-10 rounded-full bg-purple-100 flex items-center justify-center mr-3">
                                    <i class="fas fa-palette text-purple-600"></i>
                                </div>
                                <h3 class="font-bold text-lg text-purple-800">艺术的一面</h3>
                            </div>
                            <p class="text-gray-700">
                                如同与学识渊博但"字面意思"的助理沟通，需要清晰、具体、有条理的指令才能完美完成任务。
                            </p>
                        </div>
                    </div>
                    
                    <div class="bg-gray-50 p-5 rounded-lg border border-gray-200">
                        <h3 class="font-bold text-lg mb-3 flex items-center">
                            <i class="fas fa-balance-scale text-gray-500 mr-2"></i>
                            提示词工程 vs. 模型微调
                        </h3>
                        <div class="overflow-x-auto">
                            <table class="w-full text-sm">
                                <thead class="bg-gray-100">
                                    <tr>
                                        <th class="px-4 py-2 text-left">对比维度</th>
                                        <th class="px-4 py-2 text-left">提示词工程</th>
                                        <th class="px-4 py-2 text-left">模型微调</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr class="border-b border-gray-200">
                                        <td class="px-4 py-3 font-medium">方式</td>
                                        <td class="px-4 py-3">优化输入指令</td>
                                        <td class="px-4 py-3">调整模型参数</td>
                                    </tr>
                                    <tr class="border-b border-gray-200">
                                        <td class="px-4 py-3 font-medium">成本</td>
                                        <td class="px-4 py-3">无需额外计算资源</td>
                                        <td class="px-4 py-3">需要大量数据和计算资源</td>
                                    </tr>
                                    <tr>
                                        <td class="px-4 py-3 font-medium">适用场景</td>
                                        <td class="px-4 py-3">通用任务，快速验证</td>
                                        <td class="px-4 py-3">专业领域深度定制</td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </section>

                <!-- 提示词构成 -->
                <section class="mb-12">
                    <div class="flex items-center mb-6">
                        <div class="w-1.5 h-6 bg-blue-600 mr-3 rounded-full"></div>
                        <h2 class="text-2xl font-bold text-gray-900">提示词四大核心组件</h2>
                    </div>
                    
                    <div class="grid sm:grid-cols-2 lg:grid-cols-4 gap-4 mb-8">
                        <!-- 组件1 -->
                        <div class="grid-card-item bg-blue-50 p-5 rounded-lg border border-blue-100">
                            <div class="text-blue-600 mb-2">
                                <i class="fas fa-directions text-xl"></i>
                            </div>
                            <h3 class="font-bold mb-2 text-blue-800">指令</h3>
                            <p class="text-sm text-gray-700">
                                明确告知模型需要执行的任务，如"总结以下文章的核心观点"。
                            </p>
                        </div>
                        
                        <!-- 组件2 -->
                        <div class="grid-card-item bg-blue-50 p-5 rounded-lg border border-blue-100">
                            <div class="text-blue-600 mb-2">
                                <i class="fas fa-layer-group text-xl"></i>
                            </div>
                            <h3 class="font-bold mb-2 text-blue-800">上下文</h3>
                            <p class="text-sm text-gray-700">
                                提供背景信息或约束条件，如"你是一名投资分析师..."。
                            </p>
                        </div>
                        
                        <!-- 组件3 -->
                        <div class="grid-card-item bg-blue-50 p-5 rounded-lg border border-blue-100">
                            <div class="text-blue-600 mb-2">
                                <i class="fas fa-database text-xl"></i>
                            </div>
                            <h3 class="font-bold mb-2 text-blue-800">输入数据</h3>
                            <p class="text-sm text-gray-700">
                                需要处理的具体内容，如文章全文或数据集。
                            </p>
                        </div>
                        
                        <!-- 组件4 -->
                        <div class="grid-card-item bg-blue-50 p-5 rounded-lg border border-blue-100">
                            <div class="text-blue-600 mb-2">
                                <i class="fas fa-clipboard-list text-xl"></i>
                            </div>
                            <h3 class="font-bold mb-2 text-blue-800">输出指示</h3>
                            <p class="text-sm text-gray-700">
                                规定输出的格式、风格或长度，如"用无序列表呈现"。
                            </p>
                        </div>
                    </div>
                    
                    <div class="bg-white border border-gray-200 rounded-lg p-6 shadow-sm">
                        <h3 class="font-bold text-lg mb-4 flex items-center">
                            <i class="fas fa-lightbulb text-yellow-500 mr-2"></i>
                            高效提示词编写原则
                        </h3>
                        <ul class="space-y-3">
                            <li class="flex items-start">
                                <i class="fas fa-check-circle text-green-500 mt-1 mr-2"></i>
                                <span><span class="font-medium">清晰具体</span>：避免模糊、歧义的词语</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-check-circle text-green-500 mt-1 mr-2"></i>
                                <span><span class="font-medium">赋予角色</span>：如"资深营销策划"提升专业性</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-check-circle text-green-500 mt-1 mr-2"></i>
                                <span><span class="font-medium">提供示例</span>：Few-Shot比Zero-Shot更有效</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-check-circle text-green-500 mt-1 mr-2"></i>
                                <span><span class="font-medium">正面引导</span>：多用"请这样做"而非"不要那样做"</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-check-circle text-green-500 mt-1 mr-2"></i>
                                <span><span class="font-medium">持续迭代</span>：很少有提示词能一次完美</span>
                            </li>
                        </ul>
                    </div>
                </section>

                <!-- 进阶技巧 -->
                <section class="mb-12">
                    <div class="flex items-center mb-6">
                        <div class="w-1.5 h-6 bg-indigo-600 mr-3 rounded-full"></div>
                        <h2 class="text-2xl font-bold text-gray-900">进阶提示词工程技巧</h2>
                    </div>
                    
                    <div class="grid md:grid-cols-2 gap-6 mb-8">
                        <!-- 技巧1 -->
                        <div class="grid-card-item bg-indigo-50 p-6 rounded-xl">
                            <h3 class="font-bold text-lg mb-3 text-indigo-800 flex items-center">
                                <i class="fas fa-project-diagram mr-2"></i>
                                思维链 (Chain-of-Thought)
                            </h3>
                            <p class="text-gray-700 mb-4">
                                引导模型"一步一步地思考"并展示推理过程，提升逻辑推理、数学计算等复杂任务的准确性。
                            </p>
                            <div class="bg-white p-4 rounded-lg text-sm">
                                <p class="font-medium mb-1">示例：</p>
                                <p class="text-gray-600 italic">
                                    "请分步思考并计算：一个水壶里有10个苹果，你拿走了3个，又放进去2个，现在水壶里有多少苹果？"
                                </p>
                            </div>
                        </div>
                        
                        <!-- 技巧2 -->
                        <div class="grid-card-item bg-indigo-50 p-6 rounded-xl">
                            <h3 class="font-bold text-lg mb-3 text-indigo-800 flex items-center">
                                <i class="fas fa-tree mr-2"></i>
                                思维树 (Tree of Thoughts)
                            </h3>
                            <p class="text-gray-700 mb-4">
                                CoT的进阶版，探索多个推理路径形成"思维之树"，选择最优路径得出结论。
                            </p>
                            <div class="bg-white p-4 rounded-lg text-sm">
                                <p class="font-medium mb-1">优势：</p>
                                <p class="text-gray-600">
                                    结合自洽性(Self-Consistency)，通过"民主投票"提高可靠性。
                                </p>
                            </div>
                        </div>
                    </div>
                    
                    <div class="grid md:grid-cols-2 gap-6">
                        <!-- 技巧3 -->
                        <div class="grid-card-item bg-indigo-50 p-6 rounded-xl">
                            <h3 class="font-bold text-lg mb-3 text-indigo-800 flex items-center">
                                <i class="fas fa-step-backward mr-2"></i>
                                退步提示法
                            </h3>
                            <p class="text-gray-700">
                                从具体问题"退一步"，先思考解决该问题的一般性原则，再回到具体问题解决。
                            </p>
                        </div>
                        
                        <!-- 技巧4 -->
                        <div class="grid-card-item bg-indigo-50 p-6 rounded-xl">
                            <h3 class="font-bold text-lg mb-3 text-indigo-800 flex items-center">
                                <i class="fas fa-layer-group mr-2"></i>
                                任务分解
                            </h3>
                            <p class="text-gray-700">
                                将复杂任务分解为一系列子任务，通过多轮对话逐步完成。
                            </p>
                        </div>
                    </div>
                </section>

                <!-- 应用与趋势 -->
                <section>
                    <div class="flex items-center mb-6">
                        <div class="w-1.5 h-6 bg-teal-600 mr-3 rounded-full"></div>
                        <h2 class="text-2xl font-bold text-gray-900">2025年应用与前沿趋势</h2>
                    </div>
                    
                    <div class="mb-8">
                        <h3 class="font-bold text-lg mb-4 flex items-center text-teal-800">
                            <i class="fas fa-industry mr-2"></i>
                            跨行业应用
                        </h3>
                        <div class="grid sm:grid-cols-2 lg:grid-cols-3 gap-4">
                            <div class="bg-teal-50 px-4 py-3 rounded-lg border border-teal-100 flex items-center">
                                <i class="fas fa-graduation-cap text-teal-600 mr-3"></i>
                                <span>教育与科研</span>
                            </div>
                            <div class="bg-teal-50 px-4 py-3 rounded-lg border border-teal-100 flex items-center">
                                <i class="fas fa-heartbeat text-teal-600 mr-3"></i>
                                <span>医疗健康</span>
                            </div>
                            <div class="bg-teal-50 px-4 py-3 rounded-lg border border-teal-100 flex items-center">
                                <i class="fas fa-chart-line text-teal-600 mr-3"></i>
                                <span>金融行业</span>
                            </div>
                            <div class="bg-teal-50 px-4 py-3 rounded-lg border border-teal-100 flex items-center">
                                <i class="fas fa-briefcase text-teal-600 mr-3"></i>
                                <span>商业运营</span>
                            </div>
                            <div class="bg-teal-50 px-4 py-3 rounded-lg border border-teal-100 flex items-center">
                                <i class="fas fa-search-dollar text-teal-600 mr-3"></i>
                                <span>工程审计</span>
                            </div>
                            <div class="bg-teal-50 px-4 py-3 rounded-lg border border-teal-100 flex items-center">
                                <i class="fas fa-pen-fancy text-teal-600 mr-3"></i>
                                <span>内容创作</span>
                            </div>
                        </div>
                    </div>
                    
                    <div class="mb-8">
                        <h3 class="font-bold text-lg mb-4 flex items-center text-teal-800">
                            <i class="fas fa-trending-up mr-2"></i>
                            前沿发展趋势
                        </h3>
                        <div class="bg-white border border-gray-200 rounded-lg p-6 shadow-sm">
                            <ul class="space-y-4">
                                <li class="flex items-start">
                                    <div class="bg-teal-100 text-teal-800 rounded-full w-6 h-6 flex items-center justify-center mr-3 flex-shrink-0">
                                        <i class="fas fa-bolt text-xs"></i>
                                    </div>
                                    <div>
                                        <p class="font-medium">自动化与自适应提示</p>
                                        <p class="text-gray-600 text-sm">结合RAG技术，动态调整响应策略</p>
                                    </div>
                                </li>
                                <li class="flex items-start">
                                    <div class="bg-teal-100 text-teal-800 rounded-full w-6 h-6 flex items-center justify-center mr-3 flex-shrink-0">
                                        <i class="fas fa-images text-xs"></i>
                                    </div>
                                    <div>
                                        <p class="font-medium">多模态提示工程</p>
                                        <p class="text-gray-600 text-sm">组合文本、图像、声音等多模态指令</p>
                                    </div>
                                </li>
                                <li class="flex items-start">
                                    <div class="bg-teal-100 text-teal-800 rounded-full w-6 h-6 flex items-center justify-center mr-3 flex-shrink-0">
                                        <i class="fas fa-tools text-xs"></i>
                                    </div>
                                    <div>
                                        <p class="font-medium">标准化与工具化</p>
                                        <p class="text-gray-600 text-sm">企业构建内部提示词库和优化平台</p>
                                    </div>
                                </li>
                                <li class="flex items-start">
                                    <div class="bg-teal-100 text-teal-800 rounded-full w-6 h-6 flex items-center justify-center mr-3 flex-shrink-0">
                                        <i class="fas fa-people-arrows text-xs"></i>
                                    </div>
                                    <div>
                                        <p class="font-medium">人机协作新范式</p>
                                        <p class="text-gray-600 text-sm">将AI互动视为与团队成员的合作</p>
                                    </div>
                                </li>
                            </ul>
                        </div>
                    </div>
                </section>
            </div>

            <!-- 底部 -->
            <footer class="bg-gray-50 px-8 py-6 border-t border-gray-200">
                <div class="text-center">
                    <p class="text-gray-600 mb-2">
                        <i class="far fa-copyright mr-1"></i> Lumina AI
                    </p>
                    <p class="text-sm text-gray-500">
                        让 AI 学习变得简单有趣，一起探索人工智能的无限可能
                    </p>
                </div>
            </footer>
        </article>
    </div>
</body>
</html>